/* vector容器 构造函数 */
#include <iostream>
#include <vector>

using namespace std;

void my_print(vector<int> &v);

int main(int argc, char **argv)
{
    vector<int> v1;

    /* 24 */
    cout << sizeof(v1) << endl;

    vector<int> v2(10, 8);

    my_print(v2);

    vector<int> v3(v2.begin(), v2.end());
    my_print(v3);

    int arr[8] = {0};

    vector<int> v4(arr, arr + sizeof(arr) / sizeof(arr[0]));
    my_print(v4);




    return 0;
}

void my_print(vector<int> &v)
{
    vector<int>::iterator it = v.begin();

    for (; it != v.end(); it++)
    {
        cout << *it << " ";

    }
    cout << endl;




    return;
}